package com.mytx.pojo;

import java.math.BigDecimal;
import java.util.Date;

public class Donation {
    private String id;

    private String mId;//捐赠者id

    private String tId;

    private String fId;

    private String parentId;

    private String oId;//topic表的id，受款组织id,

    private BigDecimal amount;

    private Integer praiseSize;

    private Integer type;

    private Integer status;

    private String extra;

    private Date updated;

    private Date created;

    private User targetUser; //目标用户信息，如果查询发出的捐赠，那这是受赠者用户信息，如果是查询 收到的捐赠，那么这个是 捐赠者信息

    private Topic attachTopic; // 此捐赠依附的主题（主体）

    private Boolean hasPraise;

    public Donation(String id, String mId, String tId, String fId, String parentId, String oId, BigDecimal amount, Integer praiseSize, Integer type, Integer status, String extra, Date updated, Date created) {
        this.id = id;
        this.mId = mId;
        this.tId = tId;
        this.fId = fId;
        this.parentId = parentId;
        this.oId = oId;
        this.amount = amount;
        this.praiseSize = praiseSize;
        this.type = type;
        this.status = status;
        this.extra = extra;
        this.updated = updated;
        this.created = created;
    }

    public Donation() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getmId() {
        return mId;
    }

    public void setmId(String mId) {
        this.mId = mId == null ? null : mId.trim();
    }

    public String gettId() {
        return tId;
    }

    public void settId(String tId) {
        this.tId = tId == null ? null : tId.trim();
    }

    public String getfId() {
        return fId;
    }

    public void setfId(String fId) {
        this.fId = fId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getoId() {
        return oId;
    }

    public void setoId(String oId) {
        this.oId = oId == null ? null : oId.trim();
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getPraiseSize() {
        return praiseSize;
    }

    public void setPraiseSize(Integer praiseSize) {
        this.praiseSize = praiseSize;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra == null ? null : extra.trim();
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public User getTargetUser() {
        return targetUser;
    }

    public void setTargetUser(User targetUser) {
        this.targetUser = targetUser;
    }

    public Topic getAttachTopic() {
        return attachTopic;
    }

    public void setAttachTopic(Topic attachTopic) {
        this.attachTopic = attachTopic;
    }

    public Boolean getHasPraise() {
        return hasPraise;
    }

    public void setHasPraise(Boolean hasPraise) {
        this.hasPraise = hasPraise;
    }
}